package com.gofgame.jumpdown.server.dataaccess;

import java.util.List;

import com.gofgame.jumpdown.server.entities.Score;

public interface ScoreRepository {
	
	Score getScoreByUserNameAndLevel(
			String userName,
			int level);
	
	long getScoreItemCount();
	
	long getScoreCountThatIsGreatorThanLevel(int level);
	
	List<Score> getScoresOrderByLevelAndTimeDescending(
			int firstResult,
			int maxResults);
	
	void persist(Score score);
	
	void merge(Score score);
	
	void remove(Score scroe);
	
}
